<style type="text/css" media="screen">
.my-uploadify-button {
    background: none;
    border: none;
    text-shadow: none;
    border-radius: 0;
}
.uploadify-queue-item {
    padding: 5px; 
}
.uploadify:hover .my-uploadify-button {
    background: none;
    border: none;
}

.fileQueue {
    width: 450px;
    height: 120px;
    overflow: auto;
    border: 1px solid;
    border-color: #E5E5E5;
    float: left;
    clear: left;
}

#fileupload {
    margin-bottom: 5px;
}
</style>
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/workflow/startTask" class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent" layoutH="50">
            <input type="hidden" name="navTabId" value="${navTabId!''}"> 
            <!-- 业务表单key -->
            <input type="hidden" name="flowMap_formKey" value="${formKey!''}"> 
            <!-- 要发起的流程key -->
            <input type="hidden" name="flowMap_processdefinitionId" value="${processdefinitionId!''}" />
            <!-- 自定义表单生成元素 -->
            <@customerForm></@customerForm> 
            
        </div>
        <div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key="save.B">保存</@label></button></div></div></li>
            <li>
                <div class="buttonActiveGrey"><div class="buttonContent"><button type="button" class="close"><@label key="cancel.B">取消</@label></button></div></div>
            </li>
        </ul>
        </div>
    </form>
</div>
<!-- 后台动态生成的js脚本，附件上传使用
<script type="text/javascript">
var FILE1Attachment = {
	    attachmentCount : 0,
	    uploadSuccess : function(file, data, response) {
	        FILE1Attachment.attachmentCount ++;
	        console.log(data);
	        data = eval("("+data+")"); 
	        if(data && data.data){
	        	var attach = data.data;
	            var $div = $("<div class='uploadify-queue-item'></div>");
	            var _id = "FILE1" + FILE1Attachment.attachmentCount;
	            $div.attr("id", _id);
	            $div.append("<div class='cancel'><a title='删除' target='ajax' divId='"+_id+"' onclick='FILE1Attachment._deleteFile(this)'></div>");
	            $div.append("<span class='fileName'></span>");
	            var downUrl = hostUrl + "/common/downloadAttachement?attachmentCode=" + attach.attachmentCode + "&fileName="+attach.fileName;
	            $("span:eq(0)", $div).append("<a target='dwzExport' href='"+downUrl+"'>"+attach.fileName+ "("+Math.round(attach.fileSize/1024)+"KB)</a>");
	            $($div).append("<input type='hidden' name='FILE1' value='" +JSON.stringify(data.data)+"' />");
	            $("#div_FILE1", $.pdialog.getCurrent()).append($div);
	        }
	    },
	    _deleteFile(_this) {
	    	var _id = $(_this).attr("divId");
	    	if(_id && _id != null){
	            $("div#"+_id).remove();
	        }
	    },
	    _uploadFile() {
	        $('#input_FILE1',$.pdialog.getCurrent()).uploadify('upload', '*');
	    }
	}
</script>  -->
